local L0_1, L1_1, L2_1, L3_1, L4_1
L0_1 = {}
L1_1 = vector3
L2_1 = -1656.25
L3_1 = -1120.387
L4_1 = 30.07145
L1_1 = L1_1(L2_1, L3_1, L4_1)
L0_1.coords = L1_1
L0_1.started = false
L0_1.currentrotation = 0.0
L0_1.stageinprogress = false
L0_1.stage = 16
L0_1.stagecounter = 0
L0_1.stagespeed = 0.5
L0_1.cageclosed = false
L1_1 = {}
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[1] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[2] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[3] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[4] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[5] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[6] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[7] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[8] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[9] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[10] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[11] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[12] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[13] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[14] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[15] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[16] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[17] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[18] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[19] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[20] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[21] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[22] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[23] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[24] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[25] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[26] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[27] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[28] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[29] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[30] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[31] = L2_1
L2_1 = {}
L2_1.taken = false
L2_1.takenplayerid = nil
L2_1.seattype = 1
L1_1[32] = L2_1
L0_1.seats = L1_1
boathandler = L0_1
function L0_1(A0_2, A1_2, A2_2)
  local L3_2, L4_2, L5_2, L6_2
  L3_2 = Config
  L3_2 = L3_2.AttractionsSettings
  L3_2 = L3_2.boat
  L3_2 = L3_2.speedmodifier
  L3_2 = A0_2 * L3_2
  L4_2 = A1_2 / A2_2
  L4_2 = L4_2 * 100.0
  if L4_2 > 60.0 then
    L5_2 = 130.0
    L5_2 = L5_2 - L4_2
    L6_2 = L5_2 / 100.0
    L6_2 = L6_2 * L3_2
    return L6_2
  elseif L4_2 < 20.0 then
    L5_2 = 130.0
    L5_2 = L5_2 - L4_2
    L6_2 = 100.0
    L6_2 = L6_2 / L5_2
    L6_2 = L6_2 * L3_2
    return L6_2
  else
    return L3_2
  end
end
CalculateSpeedBoat = L0_1
L0_1 = GlobalState
L0_1["attraction5-phase"] = 0
L0_1 = GlobalState
L0_1["attraction5-ridedata1"] = 0.0
L0_1 = GlobalState
L0_1["attraction5-speeddata1"] = 0.1
L0_1 = GlobalState
L0_1["attraction5-direction"] = 1
L0_1 = GlobalState
L0_1["attraction5-stop"] = false
L0_1 = GlobalState
L0_1["attraction5-synchdata"] = 1
function L0_1()
  local L0_2, L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2
  L0_2 = boathandler
  L0_2 = L0_2.started
  if true == L0_2 then
    L0_2 = boathandler
    L0_2.cageclosed = true
    L0_2 = TriggerClientEvent
    L1_2 = "rtx_themepark:Boat:SynchronizeCageClient"
    L2_2 = -1
    L3_2 = true
    L0_2(L1_2, L2_2, L3_2)
    L0_2 = Citizen
    L0_2 = L0_2.Wait
    L1_2 = 7500
    L0_2(L1_2)
    L0_2 = TriggerClientEvent
    L1_2 = "rtx_themepark:Global:MusicStartAttraction"
    L2_2 = -1
    L3_2 = "boat"
    L4_2 = math
    L4_2 = L4_2.random
    L5_2 = 1
    L6_2 = Config
    L6_2 = L6_2.AttractionsMusic
    L6_2 = L6_2.boat
    L6_2 = L6_2.playlist
    L6_2 = #L6_2
    L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2 = L4_2(L5_2, L6_2)
    L0_2(L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2)
    L0_2 = boathandler
    L0_2.stageinprogress = true
    L0_2 = boathandler
    L0_2.stage = 1
    L0_2 = boathandler
    L0_2.stagecounter = 0
    L0_2 = boathandler
    L0_2.stagespeed = 0.5
    L0_2 = boathandler
    L0_2.stagedirection = 1
    L0_2 = GlobalState
    L0_2["attraction5-phase"] = 1
    L0_2 = GlobalState
    L0_2["attraction5-ridedata1"] = 0.0
    L0_2 = GlobalState
    L0_2["attraction5-speeddata1"] = 0.1
    L0_2 = GlobalState
    L0_2["attraction5-direction"] = 1
    L0_2 = GlobalState
    L0_2["attraction5-stop"] = false
    L0_2 = GlobalState
    L0_2["attraction5-synchdata"] = 1
    L0_2 = ipairs
    L1_2 = boathandler
    L1_2 = L1_2.seats
    L0_2, L1_2, L2_2, L3_2 = L0_2(L1_2)
    for L4_2, L5_2 in L0_2, L1_2, L2_2, L3_2 do
      L6_2 = L5_2.taken
      if true == L6_2 then
        L6_2 = pairs
        L7_2 = playsersinthemepark
        L6_2, L7_2, L8_2, L9_2 = L6_2(L7_2)
        for L10_2, L11_2 in L6_2, L7_2, L8_2, L9_2 do
          L12_2 = TriggerClientEvent
          L13_2 = "rtx_themepark:Boat:SynchronizeSeat"
          L14_2 = L11_2
          L15_2 = L4_2
          L16_2 = true
          L17_2 = L5_2.takenplayerid
          L18_2 = L5_2.seattype
          L12_2(L13_2, L14_2, L15_2, L16_2, L17_2, L18_2)
        end
        L6_2 = TriggerClientEvent
        L7_2 = "rtx_themepark:Global:AttractionUsing"
        L8_2 = L5_2.takenplayerid
        L9_2 = true
        L6_2(L7_2, L8_2, L9_2)
      end
    end
    L0_2 = false
    while true do
      L1_2 = boathandler
      L1_2 = L1_2.stageinprogress
      if true ~= L1_2 then
        break
      end
      L1_2 = Citizen
      L1_2 = L1_2.Wait
      L2_2 = 20
      L1_2(L2_2)
      if true == L0_2 then
        L1_2 = Citizen
        L1_2 = L1_2.Wait
        L2_2 = 80
        L1_2(L2_2)
        L0_2 = false
      end
      L1_2 = boathandler
      L1_2 = L1_2.stage
      if 1 == L1_2 then
        L1_2 = boathandler
        L1_2 = L1_2.stagedirection
        if 1 == L1_2 then
          L1_2 = boathandler
          L2_2 = CalculateSpeedBoat
          L3_2 = 0.1
          L4_2 = boathandler
          L4_2 = L4_2.currentrotation
          L5_2 = 5.0
          L2_2 = L2_2(L3_2, L4_2, L5_2)
          L1_2.stagespeed = L2_2
          L1_2 = boathandler
          L1_2 = L1_2.currentrotation
          if L1_2 > 5.0 then
            L1_2 = boathandler
            L1_2.stagedirection = 2
          end
          L1_2 = boathandler
          L2_2 = boathandler
          L2_2 = L2_2.currentrotation
          L3_2 = boathandler
          L3_2 = L3_2.stagespeed
          L2_2 = L2_2 + L3_2
          L1_2.currentrotation = L2_2
        else
          L1_2 = boathandler
          L2_2 = CalculateSpeedBoat
          L3_2 = 0.1
          L4_2 = boathandler
          L4_2 = L4_2.currentrotation
          L5_2 = -5.0
          L2_2 = L2_2(L3_2, L4_2, L5_2)
          L1_2.stagespeed = L2_2
          L1_2 = boathandler
          L1_2 = L1_2.currentrotation
          if L1_2 < -5.0 then
            L1_2 = boathandler
            L1_2.stagedirection = 1
            L1_2 = boathandler
            L1_2.stage = 2
          end
          L1_2 = boathandler
          L2_2 = boathandler
          L2_2 = L2_2.currentrotation
          L3_2 = boathandler
          L3_2 = L3_2.stagespeed
          L2_2 = L2_2 - L3_2
          L1_2.currentrotation = L2_2
        end
      else
        L1_2 = boathandler
        L1_2 = L1_2.stage
        if 2 == L1_2 then
          L1_2 = boathandler
          L1_2 = L1_2.stagedirection
          if 1 == L1_2 then
            L1_2 = boathandler
            L2_2 = CalculateSpeedBoat
            L3_2 = 0.25
            L4_2 = boathandler
            L4_2 = L4_2.currentrotation
            L5_2 = 10.0
            L2_2 = L2_2(L3_2, L4_2, L5_2)
            L1_2.stagespeed = L2_2
            L1_2 = boathandler
            L1_2 = L1_2.currentrotation
            if L1_2 > 10.0 then
              L1_2 = boathandler
              L1_2.stagedirection = 2
            end
            L1_2 = boathandler
            L2_2 = boathandler
            L2_2 = L2_2.currentrotation
            L3_2 = boathandler
            L3_2 = L3_2.stagespeed
            L2_2 = L2_2 + L3_2
            L1_2.currentrotation = L2_2
          else
            L1_2 = boathandler
            L2_2 = CalculateSpeedBoat
            L3_2 = 0.25
            L4_2 = boathandler
            L4_2 = L4_2.currentrotation
            L5_2 = -10.0
            L2_2 = L2_2(L3_2, L4_2, L5_2)
            L1_2.stagespeed = L2_2
            L1_2 = boathandler
            L1_2 = L1_2.currentrotation
            if L1_2 < -10.0 then
              L1_2 = boathandler
              L1_2.stagedirection = 1
              L1_2 = boathandler
              L1_2.stage = 3
            end
            L1_2 = boathandler
            L2_2 = boathandler
            L2_2 = L2_2.currentrotation
            L3_2 = boathandler
            L3_2 = L3_2.stagespeed
            L2_2 = L2_2 - L3_2
            L1_2.currentrotation = L2_2
          end
        else
          L1_2 = boathandler
          L1_2 = L1_2.stage
          if 3 == L1_2 then
            L1_2 = boathandler
            L1_2.stagespeed = 0.5
            L1_2 = boathandler
            L1_2 = L1_2.stagedirection
            if 1 == L1_2 then
              L1_2 = boathandler
              L2_2 = CalculateSpeedBoat
              L3_2 = 0.5
              L4_2 = boathandler
              L4_2 = L4_2.currentrotation
              L5_2 = 15.0
              L2_2 = L2_2(L3_2, L4_2, L5_2)
              L1_2.stagespeed = L2_2
              L1_2 = boathandler
              L1_2 = L1_2.currentrotation
              if L1_2 > 15.0 then
                L1_2 = boathandler
                L1_2.stagedirection = 2
                L0_2 = true
              end
              L1_2 = boathandler
              L2_2 = boathandler
              L2_2 = L2_2.currentrotation
              L3_2 = boathandler
              L3_2 = L3_2.stagespeed
              L2_2 = L2_2 + L3_2
              L1_2.currentrotation = L2_2
            else
              L1_2 = boathandler
              L2_2 = CalculateSpeedBoat
              L3_2 = 0.5
              L4_2 = boathandler
              L4_2 = L4_2.currentrotation
              L5_2 = -15.0
              L2_2 = L2_2(L3_2, L4_2, L5_2)
              L1_2.stagespeed = L2_2
              L1_2 = boathandler
              L1_2 = L1_2.currentrotation
              if L1_2 < -15.0 then
                L1_2 = boathandler
                L1_2.stagedirection = 1
                L1_2 = boathandler
                L1_2.stage = 4
                L0_2 = true
              end
              L1_2 = boathandler
              L2_2 = boathandler
              L2_2 = L2_2.currentrotation
              L3_2 = boathandler
              L3_2 = L3_2.stagespeed
              L2_2 = L2_2 - L3_2
              L1_2.currentrotation = L2_2
            end
          else
            L1_2 = boathandler
            L1_2 = L1_2.stage
            if 4 == L1_2 then
              L1_2 = boathandler
              L1_2.stagespeed = 0.75
              L1_2 = boathandler
              L1_2 = L1_2.stagedirection
              if 1 == L1_2 then
                L1_2 = boathandler
                L2_2 = CalculateSpeedBoat
                L3_2 = 0.75
                L4_2 = boathandler
                L4_2 = L4_2.currentrotation
                L5_2 = 25.0
                L2_2 = L2_2(L3_2, L4_2, L5_2)
                L1_2.stagespeed = L2_2
                L1_2 = boathandler
                L1_2 = L1_2.currentrotation
                if L1_2 > 25.0 then
                  L1_2 = boathandler
                  L1_2.stagedirection = 2
                  L0_2 = true
                end
                L1_2 = boathandler
                L2_2 = boathandler
                L2_2 = L2_2.currentrotation
                L3_2 = boathandler
                L3_2 = L3_2.stagespeed
                L2_2 = L2_2 + L3_2
                L1_2.currentrotation = L2_2
              else
                L1_2 = boathandler
                L2_2 = CalculateSpeedBoat
                L3_2 = 0.75
                L4_2 = boathandler
                L4_2 = L4_2.currentrotation
                L5_2 = -25.0
                L2_2 = L2_2(L3_2, L4_2, L5_2)
                L1_2.stagespeed = L2_2
                L1_2 = boathandler
                L1_2 = L1_2.currentrotation
                if L1_2 < -25.0 then
                  L1_2 = boathandler
                  L1_2.stagedirection = 1
                  L1_2 = boathandler
                  L1_2.stage = 5
                  L0_2 = true
                end
                L1_2 = boathandler
                L2_2 = boathandler
                L2_2 = L2_2.currentrotation
                L3_2 = boathandler
                L3_2 = L3_2.stagespeed
                L2_2 = L2_2 - L3_2
                L1_2.currentrotation = L2_2
              end
            else
              L1_2 = boathandler
              L1_2 = L1_2.stage
              if 5 == L1_2 then
                L1_2 = boathandler
                L1_2.stagespeed = 1.25
                L1_2 = boathandler
                L1_2 = L1_2.stagedirection
                if 1 == L1_2 then
                  L1_2 = boathandler
                  L2_2 = CalculateSpeedBoat
                  L3_2 = 1.25
                  L4_2 = boathandler
                  L4_2 = L4_2.currentrotation
                  L5_2 = 40.0
                  L2_2 = L2_2(L3_2, L4_2, L5_2)
                  L1_2.stagespeed = L2_2
                  L1_2 = boathandler
                  L1_2 = L1_2.currentrotation
                  if L1_2 > 40.0 then
                    L1_2 = boathandler
                    L1_2.stagedirection = 2
                    L0_2 = true
                  end
                  L1_2 = boathandler
                  L2_2 = boathandler
                  L2_2 = L2_2.currentrotation
                  L3_2 = boathandler
                  L3_2 = L3_2.stagespeed
                  L2_2 = L2_2 + L3_2
                  L1_2.currentrotation = L2_2
                else
                  L1_2 = boathandler
                  L2_2 = CalculateSpeedBoat
                  L3_2 = 1.25
                  L4_2 = boathandler
                  L4_2 = L4_2.currentrotation
                  L5_2 = -40.0
                  L2_2 = L2_2(L3_2, L4_2, L5_2)
                  L1_2.stagespeed = L2_2
                  L1_2 = boathandler
                  L1_2 = L1_2.currentrotation
                  if L1_2 < -40.0 then
                    L1_2 = boathandler
                    L1_2.stagedirection = 1
                    L1_2 = boathandler
                    L1_2.stage = 6
                    L0_2 = true
                  end
                  L1_2 = boathandler
                  L2_2 = boathandler
                  L2_2 = L2_2.currentrotation
                  L3_2 = boathandler
                  L3_2 = L3_2.stagespeed
                  L2_2 = L2_2 - L3_2
                  L1_2.currentrotation = L2_2
                end
              else
                L1_2 = boathandler
                L1_2 = L1_2.stage
                if 6 == L1_2 then
                  L1_2 = boathandler
                  L1_2.stagespeed = 1.5
                  L1_2 = boathandler
                  L1_2 = L1_2.stagedirection
                  if 1 == L1_2 then
                    L1_2 = boathandler
                    L2_2 = CalculateSpeedBoat
                    L3_2 = 1.5
                    L4_2 = boathandler
                    L4_2 = L4_2.currentrotation
                    L5_2 = 55.0
                    L2_2 = L2_2(L3_2, L4_2, L5_2)
                    L1_2.stagespeed = L2_2
                    L1_2 = boathandler
                    L1_2 = L1_2.currentrotation
                    if L1_2 > 55.0 then
                      L1_2 = boathandler
                      L1_2.stagedirection = 2
                      L0_2 = true
                    end
                    L1_2 = boathandler
                    L2_2 = boathandler
                    L2_2 = L2_2.currentrotation
                    L3_2 = boathandler
                    L3_2 = L3_2.stagespeed
                    L2_2 = L2_2 + L3_2
                    L1_2.currentrotation = L2_2
                  else
                    L1_2 = boathandler
                    L2_2 = CalculateSpeedBoat
                    L3_2 = 1.5
                    L4_2 = boathandler
                    L4_2 = L4_2.currentrotation
                    L5_2 = -55.0
                    L2_2 = L2_2(L3_2, L4_2, L5_2)
                    L1_2.stagespeed = L2_2
                    L1_2 = boathandler
                    L1_2 = L1_2.currentrotation
                    if L1_2 < -55.0 then
                      L1_2 = boathandler
                      L1_2.stagedirection = 1
                      L1_2 = boathandler
                      L1_2.stage = 7
                      L0_2 = true
                    end
                    L1_2 = boathandler
                    L2_2 = boathandler
                    L2_2 = L2_2.currentrotation
                    L3_2 = boathandler
                    L3_2 = L3_2.stagespeed
                    L2_2 = L2_2 - L3_2
                    L1_2.currentrotation = L2_2
                  end
                else
                  L1_2 = boathandler
                  L1_2 = L1_2.stage
                  if 7 == L1_2 then
                    L1_2 = boathandler
                    L1_2.stagespeed = 1.75
                    L1_2 = boathandler
                    L1_2 = L1_2.stagedirection
                    if 1 == L1_2 then
                      L1_2 = boathandler
                      L2_2 = CalculateSpeedBoat
                      L3_2 = 1.75
                      L4_2 = boathandler
                      L4_2 = L4_2.currentrotation
                      L5_2 = 80.0
                      L2_2 = L2_2(L3_2, L4_2, L5_2)
                      L1_2.stagespeed = L2_2
                      L1_2 = boathandler
                      L1_2 = L1_2.currentrotation
                      if L1_2 > 80.0 then
                        L1_2 = boathandler
                        L1_2.stagedirection = 2
                        L1_2 = boathandler
                        L2_2 = boathandler
                        L2_2 = L2_2.stagecounter
                        L2_2 = L2_2 + 1
                        L1_2.stagecounter = L2_2
                        L1_2 = boathandler
                        L1_2 = L1_2.stagecounter
                        L2_2 = Config
                        L2_2 = L2_2.AttractionsSettings
                        L2_2 = L2_2.boat
                        L2_2 = L2_2.maxrounds
                        if L1_2 > L2_2 then
                          L1_2 = boathandler
                          L1_2.stage = 8
                          L0_2 = true
                        end
                      end
                      L1_2 = boathandler
                      L2_2 = boathandler
                      L2_2 = L2_2.currentrotation
                      L3_2 = boathandler
                      L3_2 = L3_2.stagespeed
                      L2_2 = L2_2 + L3_2
                      L1_2.currentrotation = L2_2
                    else
                      L1_2 = boathandler
                      L2_2 = CalculateSpeedBoat
                      L3_2 = 1.75
                      L4_2 = boathandler
                      L4_2 = L4_2.currentrotation
                      L5_2 = -80.0
                      L2_2 = L2_2(L3_2, L4_2, L5_2)
                      L1_2.stagespeed = L2_2
                      L1_2 = boathandler
                      L1_2 = L1_2.currentrotation
                      if L1_2 < -80.0 then
                        L1_2 = boathandler
                        L1_2.stagedirection = 1
                        L0_2 = true
                      end
                      L1_2 = boathandler
                      L2_2 = boathandler
                      L2_2 = L2_2.currentrotation
                      L3_2 = boathandler
                      L3_2 = L3_2.stagespeed
                      L2_2 = L2_2 - L3_2
                      L1_2.currentrotation = L2_2
                    end
                  else
                    L1_2 = boathandler
                    L1_2 = L1_2.stage
                    if 8 == L1_2 then
                      L1_2 = boathandler
                      L1_2.stagespeed = 1.5
                      L1_2 = boathandler
                      L1_2 = L1_2.stagedirection
                      if 1 == L1_2 then
                        L1_2 = boathandler
                        L2_2 = CalculateSpeedBoat
                        L3_2 = 1.5
                        L4_2 = boathandler
                        L4_2 = L4_2.currentrotation
                        L5_2 = 55.0
                        L2_2 = L2_2(L3_2, L4_2, L5_2)
                        L1_2.stagespeed = L2_2
                        L1_2 = boathandler
                        L1_2 = L1_2.currentrotation
                        if L1_2 > 55.0 then
                          L1_2 = boathandler
                          L1_2.stagedirection = 2
                          L0_2 = true
                        end
                        L1_2 = boathandler
                        L2_2 = boathandler
                        L2_2 = L2_2.currentrotation
                        L3_2 = boathandler
                        L3_2 = L3_2.stagespeed
                        L2_2 = L2_2 + L3_2
                        L1_2.currentrotation = L2_2
                      else
                        L1_2 = boathandler
                        L2_2 = CalculateSpeedBoat
                        L3_2 = 1.5
                        L4_2 = boathandler
                        L4_2 = L4_2.currentrotation
                        L5_2 = -55.0
                        L2_2 = L2_2(L3_2, L4_2, L5_2)
                        L1_2.stagespeed = L2_2
                        L1_2 = boathandler
                        L1_2 = L1_2.currentrotation
                        if L1_2 < -55.0 then
                          L1_2 = boathandler
                          L1_2.stagedirection = 1
                          L1_2 = boathandler
                          L1_2.stage = 9
                          L0_2 = true
                        end
                        L1_2 = boathandler
                        L2_2 = boathandler
                        L2_2 = L2_2.currentrotation
                        L3_2 = boathandler
                        L3_2 = L3_2.stagespeed
                        L2_2 = L2_2 - L3_2
                        L1_2.currentrotation = L2_2
                      end
                    else
                      L1_2 = boathandler
                      L1_2 = L1_2.stage
                      if 9 == L1_2 then
                        L1_2 = boathandler
                        L1_2.stagespeed = 1.25
                        L1_2 = boathandler
                        L1_2 = L1_2.stagedirection
                        if 1 == L1_2 then
                          L1_2 = boathandler
                          L2_2 = CalculateSpeedBoat
                          L3_2 = 1.25
                          L4_2 = boathandler
                          L4_2 = L4_2.currentrotation
                          L5_2 = 40.0
                          L2_2 = L2_2(L3_2, L4_2, L5_2)
                          L1_2.stagespeed = L2_2
                          L1_2 = boathandler
                          L1_2 = L1_2.currentrotation
                          if L1_2 > 40.0 then
                            L1_2 = boathandler
                            L1_2.stagedirection = 2
                            L0_2 = true
                          end
                          L1_2 = boathandler
                          L2_2 = boathandler
                          L2_2 = L2_2.currentrotation
                          L3_2 = boathandler
                          L3_2 = L3_2.stagespeed
                          L2_2 = L2_2 + L3_2
                          L1_2.currentrotation = L2_2
                        else
                          L1_2 = boathandler
                          L2_2 = CalculateSpeedBoat
                          L3_2 = 1.25
                          L4_2 = boathandler
                          L4_2 = L4_2.currentrotation
                          L5_2 = -40.0
                          L2_2 = L2_2(L3_2, L4_2, L5_2)
                          L1_2.stagespeed = L2_2
                          L1_2 = boathandler
                          L1_2 = L1_2.currentrotation
                          if L1_2 < -40.0 then
                            L1_2 = boathandler
                            L1_2.stagedirection = 1
                            L1_2 = boathandler
                            L1_2.stage = 10
                            L0_2 = true
                          end
                          L1_2 = boathandler
                          L2_2 = boathandler
                          L2_2 = L2_2.currentrotation
                          L3_2 = boathandler
                          L3_2 = L3_2.stagespeed
                          L2_2 = L2_2 - L3_2
                          L1_2.currentrotation = L2_2
                        end
                      else
                        L1_2 = boathandler
                        L1_2 = L1_2.stage
                        if 10 == L1_2 then
                          L1_2 = boathandler
                          L1_2.stagespeed = 0.75
                          L1_2 = boathandler
                          L1_2 = L1_2.stagedirection
                          if 1 == L1_2 then
                            L1_2 = boathandler
                            L2_2 = CalculateSpeedBoat
                            L3_2 = 0.75
                            L4_2 = boathandler
                            L4_2 = L4_2.currentrotation
                            L5_2 = 25.0
                            L2_2 = L2_2(L3_2, L4_2, L5_2)
                            L1_2.stagespeed = L2_2
                            L1_2 = boathandler
                            L1_2 = L1_2.currentrotation
                            if L1_2 > 25.0 then
                              L1_2 = boathandler
                              L1_2.stagedirection = 2
                              L0_2 = true
                            end
                            L1_2 = boathandler
                            L2_2 = boathandler
                            L2_2 = L2_2.currentrotation
                            L3_2 = boathandler
                            L3_2 = L3_2.stagespeed
                            L2_2 = L2_2 + L3_2
                            L1_2.currentrotation = L2_2
                          else
                            L1_2 = boathandler
                            L2_2 = CalculateSpeedBoat
                            L3_2 = 0.75
                            L4_2 = boathandler
                            L4_2 = L4_2.currentrotation
                            L5_2 = -25.0
                            L2_2 = L2_2(L3_2, L4_2, L5_2)
                            L1_2.stagespeed = L2_2
                            L1_2 = boathandler
                            L1_2 = L1_2.currentrotation
                            if L1_2 < -25.0 then
                              L1_2 = boathandler
                              L1_2.stagedirection = 1
                              L1_2 = boathandler
                              L1_2.stage = 11
                              L0_2 = true
                            end
                            L1_2 = boathandler
                            L2_2 = boathandler
                            L2_2 = L2_2.currentrotation
                            L3_2 = boathandler
                            L3_2 = L3_2.stagespeed
                            L2_2 = L2_2 - L3_2
                            L1_2.currentrotation = L2_2
                          end
                        else
                          L1_2 = boathandler
                          L1_2 = L1_2.stage
                          if 11 == L1_2 then
                            L1_2 = boathandler
                            L1_2.stagespeed = 0.5
                            L1_2 = boathandler
                            L1_2 = L1_2.stagedirection
                            if 1 == L1_2 then
                              L1_2 = boathandler
                              L2_2 = CalculateSpeedBoat
                              L3_2 = 0.5
                              L4_2 = boathandler
                              L4_2 = L4_2.currentrotation
                              L5_2 = 15.0
                              L2_2 = L2_2(L3_2, L4_2, L5_2)
                              L1_2.stagespeed = L2_2
                              L1_2 = boathandler
                              L1_2 = L1_2.currentrotation
                              if L1_2 > 15.0 then
                                L1_2 = boathandler
                                L1_2.stagedirection = 2
                                L0_2 = true
                              end
                              L1_2 = boathandler
                              L2_2 = boathandler
                              L2_2 = L2_2.currentrotation
                              L3_2 = boathandler
                              L3_2 = L3_2.stagespeed
                              L2_2 = L2_2 + L3_2
                              L1_2.currentrotation = L2_2
                            else
                              L1_2 = boathandler
                              L2_2 = CalculateSpeedBoat
                              L3_2 = 0.5
                              L4_2 = boathandler
                              L4_2 = L4_2.currentrotation
                              L5_2 = -15.0
                              L2_2 = L2_2(L3_2, L4_2, L5_2)
                              L1_2.stagespeed = L2_2
                              L1_2 = boathandler
                              L1_2 = L1_2.currentrotation
                              if L1_2 < -15.0 then
                                L1_2 = boathandler
                                L1_2.stagedirection = 1
                                L1_2 = boathandler
                                L1_2.stage = 12
                                L0_2 = true
                              end
                              L1_2 = boathandler
                              L2_2 = boathandler
                              L2_2 = L2_2.currentrotation
                              L3_2 = boathandler
                              L3_2 = L3_2.stagespeed
                              L2_2 = L2_2 - L3_2
                              L1_2.currentrotation = L2_2
                            end
                          else
                            L1_2 = boathandler
                            L1_2 = L1_2.stage
                            if 12 == L1_2 then
                              L1_2 = boathandler
                              L1_2.stagespeed = 0.25
                              L1_2 = boathandler
                              L1_2 = L1_2.stagedirection
                              if 1 == L1_2 then
                                L1_2 = boathandler
                                L2_2 = CalculateSpeedBoat
                                L3_2 = 0.25
                                L4_2 = boathandler
                                L4_2 = L4_2.currentrotation
                                L5_2 = 10.0
                                L2_2 = L2_2(L3_2, L4_2, L5_2)
                                L1_2.stagespeed = L2_2
                                L1_2 = boathandler
                                L1_2 = L1_2.currentrotation
                                if L1_2 > 10.0 then
                                  L1_2 = boathandler
                                  L1_2.stagedirection = 2
                                  L0_2 = true
                                end
                                L1_2 = boathandler
                                L2_2 = boathandler
                                L2_2 = L2_2.currentrotation
                                L3_2 = boathandler
                                L3_2 = L3_2.stagespeed
                                L2_2 = L2_2 + L3_2
                                L1_2.currentrotation = L2_2
                              else
                                L1_2 = boathandler
                                L2_2 = CalculateSpeedBoat
                                L3_2 = 0.25
                                L4_2 = boathandler
                                L4_2 = L4_2.currentrotation
                                L5_2 = -10.0
                                L2_2 = L2_2(L3_2, L4_2, L5_2)
                                L1_2.stagespeed = L2_2
                                L1_2 = boathandler
                                L1_2 = L1_2.currentrotation
                                if L1_2 < -10.0 then
                                  L1_2 = boathandler
                                  L1_2.stagedirection = 1
                                  L1_2 = boathandler
                                  L1_2.stage = 13
                                  L0_2 = true
                                end
                                L1_2 = boathandler
                                L2_2 = boathandler
                                L2_2 = L2_2.currentrotation
                                L3_2 = boathandler
                                L3_2 = L3_2.stagespeed
                                L2_2 = L2_2 - L3_2
                                L1_2.currentrotation = L2_2
                              end
                            else
                              L1_2 = boathandler
                              L1_2 = L1_2.stage
                              if 13 == L1_2 then
                                L1_2 = boathandler
                                L1_2.stagespeed = 0.1
                                L1_2 = boathandler
                                L1_2 = L1_2.stagedirection
                                if 1 == L1_2 then
                                  L1_2 = boathandler
                                  L2_2 = CalculateSpeedBoat
                                  L3_2 = 0.1
                                  L4_2 = boathandler
                                  L4_2 = L4_2.currentrotation
                                  L5_2 = 5.0
                                  L2_2 = L2_2(L3_2, L4_2, L5_2)
                                  L1_2.stagespeed = L2_2
                                  L1_2 = boathandler
                                  L1_2 = L1_2.currentrotation
                                  if L1_2 > 5.0 then
                                    L1_2 = boathandler
                                    L1_2.stagedirection = 2
                                    L0_2 = true
                                  end
                                  L1_2 = boathandler
                                  L2_2 = boathandler
                                  L2_2 = L2_2.currentrotation
                                  L3_2 = boathandler
                                  L3_2 = L3_2.stagespeed
                                  L2_2 = L2_2 + L3_2
                                  L1_2.currentrotation = L2_2
                                else
                                  L1_2 = boathandler
                                  L2_2 = CalculateSpeedBoat
                                  L3_2 = 0.1
                                  L4_2 = boathandler
                                  L4_2 = L4_2.currentrotation
                                  L5_2 = -5.0
                                  L2_2 = L2_2(L3_2, L4_2, L5_2)
                                  L1_2.stagespeed = L2_2
                                  L1_2 = boathandler
                                  L1_2 = L1_2.currentrotation
                                  if L1_2 < -5.0 then
                                    L1_2 = boathandler
                                    L1_2.stagedirection = 1
                                    L1_2 = boathandler
                                    L1_2.stage = 14
                                    L0_2 = true
                                  end
                                  L1_2 = boathandler
                                  L2_2 = boathandler
                                  L2_2 = L2_2.currentrotation
                                  L3_2 = boathandler
                                  L3_2 = L3_2.stagespeed
                                  L2_2 = L2_2 - L3_2
                                  L1_2.currentrotation = L2_2
                                end
                              else
                                L1_2 = boathandler
                                L1_2 = L1_2.stage
                                if 14 == L1_2 then
                                  L1_2 = boathandler
                                  L1_2.stagespeed = 0.1
                                  L1_2 = boathandler
                                  L1_2 = L1_2.stagedirection
                                  if 1 == L1_2 then
                                    L1_2 = boathandler
                                    L2_2 = boathandler
                                    L2_2 = L2_2.currentrotation
                                    L3_2 = boathandler
                                    L3_2 = L3_2.stagespeed
                                    L2_2 = L2_2 + L3_2
                                    L1_2.currentrotation = L2_2
                                    L1_2 = boathandler
                                    L1_2 = L1_2.currentrotation
                                    L2_2 = 0.1
                                    if L1_2 > L2_2 then
                                      L1_2 = boathandler
                                      L1_2.stage = 15
                                      L0_2 = true
                                    end
                                  end
                                else
                                  L1_2 = boathandler
                                  L1_2 = L1_2.stage
                                  if 15 == L1_2 then
                                    L1_2 = boathandler
                                    L1_2.currentrotation = 0.0
                                    L1_2 = boathandler
                                    L1_2.stage = 16
                                  else
                                    L1_2 = boathandler
                                    L1_2 = L1_2.stage
                                    if 16 == L1_2 then
                                      L1_2 = boathandler
                                      L1_2.cageclosed = false
                                      L1_2 = pairs
                                      L2_2 = playsersinthemepark
                                      L1_2, L2_2, L3_2, L4_2 = L1_2(L2_2)
                                      for L5_2, L6_2 in L1_2, L2_2, L3_2, L4_2 do
                                        L7_2 = TriggerClientEvent
                                        L8_2 = "rtx_themepark:Boat:SynchronizeCageClient"
                                        L9_2 = L6_2
                                        L10_2 = false
                                        L7_2(L8_2, L9_2, L10_2)
                                      end
                                      L1_2 = Citizen
                                      L1_2 = L1_2.Wait
                                      L2_2 = 7500
                                      L1_2(L2_2)
                                      L1_2 = ipairs
                                      L2_2 = boathandler
                                      L2_2 = L2_2.seats
                                      L1_2, L2_2, L3_2, L4_2 = L1_2(L2_2)
                                      for L5_2, L6_2 in L1_2, L2_2, L3_2, L4_2 do
                                        L7_2 = L6_2.taken
                                        if true == L7_2 then
                                          L6_2.taken = false
                                          L7_2 = pairs
                                          L8_2 = playsersinthemepark
                                          L7_2, L8_2, L9_2, L10_2 = L7_2(L8_2)
                                          for L11_2, L12_2 in L7_2, L8_2, L9_2, L10_2 do
                                            L13_2 = TriggerClientEvent
                                            L14_2 = "rtx_themepark:Boat:SynchronizeSeat"
                                            L15_2 = L12_2
                                            L16_2 = L5_2
                                            L17_2 = false
                                            L18_2 = L6_2.takenplayerid
                                            L19_2 = L6_2.seattype
                                            L13_2(L14_2, L15_2, L16_2, L17_2, L18_2, L19_2)
                                          end
                                          L7_2 = TriggerClientEvent
                                          L8_2 = "rtx_themepark:Boat:SeatExit"
                                          L9_2 = L6_2.takenplayerid
                                          L10_2 = true
                                          L7_2(L8_2, L9_2, L10_2)
                                          L7_2 = TriggerClientEvent
                                          L8_2 = "rtx_themepark:Global:AttractionUsing"
                                          L9_2 = L6_2.takenplayerid
                                          L10_2 = false
                                          L7_2(L8_2, L9_2, L10_2)
                                          L7_2 = TriggerClientEvent
                                          L8_2 = "rtx_themepark:Global:TicketHandler"
                                          L9_2 = L6_2.takenplayerid
                                          L10_2 = 5
                                          L11_2 = false
                                          L7_2(L8_2, L9_2, L10_2, L11_2)
                                          L6_2.takenplayerid = nil
                                          L6_2.seattype = 1
                                        end
                                      end
                                      L1_2 = boathandler
                                      L1_2.stageinprogress = false
                                    end
                                  end
                                end
                              end
                            end
                          end
                        end
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
      L1_2 = GlobalState
      L2_2 = boathandler
      L2_2 = L2_2.stage
      L1_2["attraction5-phase"] = L2_2
      L1_2 = GlobalState
      L2_2 = boathandler
      L2_2 = L2_2.currentrotation
      L1_2["attraction5-ridedata1"] = L2_2
      L1_2 = GlobalState
      L2_2 = boathandler
      L2_2 = L2_2.stagespeed
      L1_2["attraction5-speeddata1"] = L2_2
      L1_2 = GlobalState
      L2_2 = boathandler
      L2_2 = L2_2.stagedirection
      L1_2["attraction5-direction"] = L2_2
      L1_2 = GlobalState
      L1_2["attraction5-stop"] = L0_2
      L1_2 = GlobalState
      L2_2 = GlobalState
      L2_2 = L2_2["attraction5-synchdata"]
      L2_2 = L2_2 + 1
      L1_2["attraction5-synchdata"] = L2_2
    end
    L1_2 = TriggerClientEvent
    L2_2 = "rtx_themepark:Global:MusicStopAttraction"
    L3_2 = -1
    L4_2 = "boat"
    L1_2(L2_2, L3_2, L4_2)
    L1_2 = boathandler
    L1_2.currentrotation = 0.0
    L1_2 = GlobalState
    L1_2["attraction5-phase"] = 0
    L1_2 = GlobalState
    L1_2["attraction5-ridedata1"] = 0.0
    L1_2 = boathandler
    L1_2.started = false
    L1_2 = TriggerClientEvent
    L2_2 = "rtx_themepark:Boat:SynchronizeStarted"
    L3_2 = -1
    L4_2 = false
    L1_2(L2_2, L3_2, L4_2)
  end
end
StartBoat = L0_1
L0_1 = RegisterServerEvent
L1_1 = "rtx_themepark:Boat:SeatUse"
L0_1(L1_1)
L0_1 = AddEventHandler
L1_1 = "rtx_themepark:Boat:SeatUse"
function L2_1(A0_2)
  local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
  L1_2 = source
  L2_2 = themeparkattractionsopenstatus
  L2_2 = L2_2[10]
  if true == L2_2 then
    L2_2 = themeparkdisabled
    if false == L2_2 then
      if nil ~= A0_2 then
        L2_2 = boathandler
        L2_2 = L2_2.started
        if false == L2_2 then
          L2_2 = boathandler
          L2_2 = L2_2.seats
          L2_2 = L2_2[A0_2]
          L3_2 = L2_2.taken
          if false == L3_2 then
            L2_2.taken = true
            L2_2.takenplayerid = L1_2
            L3_2 = TriggerClientEvent
            L4_2 = "rtx_themepark:Boat:SynchronizeSeat"
            L5_2 = -1
            L6_2 = A0_2
            L7_2 = true
            L8_2 = L2_2.takenplayerid
            L9_2 = L2_2.seattype
            L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
            L3_2 = TriggerClientEvent
            L4_2 = "rtx_themepark:Boat:SeatData"
            L5_2 = L1_2
            L6_2 = A0_2
            L3_2(L4_2, L5_2, L6_2)
            L3_2 = TriggerClientEvent
            L4_2 = "rtx_themepark:Boat:DisableCollision"
            L5_2 = L1_2
            L6_2 = false
            L3_2(L4_2, L5_2, L6_2)
            L3_2 = TriggerClientEvent
            L4_2 = "rtx_themepark:Global:AttractionUsing"
            L5_2 = L1_2
            L6_2 = true
            L3_2(L4_2, L5_2, L6_2)
            L3_2 = Config
            L3_2 = L3_2.ThemeParkControlAttractions
            if false == L3_2 then
              L3_2 = boathandler
              L3_2 = L3_2.started
              if false == L3_2 then
                L3_2 = Wait
                L4_2 = Config
                L4_2 = L4_2.AttractionsSettings
                L4_2 = L4_2.boat
                L4_2 = L4_2.waitforplayers
                L3_2(L4_2)
                L3_2 = boathandler
                L3_2 = L3_2.started
                if false == L3_2 then
                  L3_2 = boathandler
                  L3_2.started = true
                  L3_2 = TriggerClientEvent
                  L4_2 = "rtx_themepark:Boat:SynchronizeStarted"
                  L5_2 = -1
                  L6_2 = true
                  L3_2(L4_2, L5_2, L6_2)
                  L3_2 = StartBoat
                  L3_2()
                end
              end
            end
          end
        end
      end
  end
  else
    L2_2 = TriggerClientEvent
    L3_2 = "rtx_themepark:Notify"
    L4_2 = L1_2
    L5_2 = Language
    L6_2 = Config
    L6_2 = L6_2.Language
    L5_2 = L5_2[L6_2]
    L5_2 = L5_2.attractionclosed
    L2_2(L3_2, L4_2, L5_2)
  end
end
L0_1(L1_1, L2_1)
L0_1 = RegisterServerEvent
L1_1 = "rtx_themepark:Boat:SeatAnimChange"
L0_1(L1_1)
L0_1 = AddEventHandler
L1_1 = "rtx_themepark:Boat:SeatAnimChange"
function L2_1(A0_2)
  local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
  L1_2 = source
  if nil ~= A0_2 then
    L2_2 = boathandler
    L2_2 = L2_2.seats
    L2_2 = L2_2[A0_2]
    L3_2 = L2_2.taken
    if true == L3_2 then
      L3_2 = L2_2.takenplayerid
      if L3_2 == L1_2 then
        L3_2 = L2_2.seattype
        if 1 == L3_2 then
          L2_2.seattype = 2
        else
          L2_2.seattype = 1
        end
        L3_2 = TriggerClientEvent
        L4_2 = "rtx_themepark:Boat:SynchronizeSeat"
        L5_2 = -1
        L6_2 = A0_2
        L7_2 = true
        L8_2 = L2_2.takenplayerid
        L9_2 = L2_2.seattype
        L3_2(L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
      end
    end
  end
end
L0_1(L1_1, L2_1)
L0_1 = RegisterServerEvent
L1_1 = "rtx_themepark:Boat:ExitAttraction"
L0_1(L1_1)
L0_1 = AddEventHandler
L1_1 = "rtx_themepark:Boat:ExitAttraction"
function L2_1(A0_2)
  local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
  L1_2 = source
  if nil ~= A0_2 then
    L2_2 = boathandler
    L2_2 = L2_2.seats
    L2_2 = L2_2[A0_2]
    L3_2 = L2_2.taken
    if true == L3_2 then
      L3_2 = L2_2.takenplayerid
      if L3_2 == L1_2 then
        L3_2 = Config
        L3_2 = L3_2.ThemeParkDisableExit
        if false ~= L3_2 then
          L3_2 = boathandler
          L3_2 = L3_2.started
          if false ~= L3_2 then
            goto lbl_47
          end
        end
        L3_2 = TriggerClientEvent
        L4_2 = "rtx_themepark:Boat:DisableCollision"
        L5_2 = L1_2
        L6_2 = true
        L3_2(L4_2, L5_2, L6_2)
        L3_2 = TriggerClientEvent
        L4_2 = "rtx_themepark:Boat:SynchronizeSeat"
        L5_2 = -1
        L6_2 = A0_2
        L7_2 = false
        L8_2 = L2_2.takenplayerid
        L3_2(L4_2, L5_2, L6_2, L7_2, L8_2)
        L3_2 = TriggerClientEvent
        L4_2 = "rtx_themepark:Boat:SeatExit"
        L5_2 = L2_2.takenplayerid
        L6_2 = false
        L3_2(L4_2, L5_2, L6_2)
        L3_2 = TriggerClientEvent
        L4_2 = "rtx_themepark:Global:AttractionUsing"
        L5_2 = L2_2.takenplayerid
        L6_2 = false
        L3_2(L4_2, L5_2, L6_2)
        L2_2.taken = false
        L2_2.takenplayerid = nil
        L2_2.seattype = 1
        goto lbl_56
        ::lbl_47::
        L3_2 = TriggerClientEvent
        L4_2 = "rtx_themepark:Notify"
        L5_2 = L1_2
        L6_2 = Language
        L7_2 = Config
        L7_2 = L7_2.Language
        L6_2 = L6_2[L7_2]
        L6_2 = L6_2.inprogress
        L3_2(L4_2, L5_2, L6_2)
      end
    end
  end
  ::lbl_56::
end
L0_1(L1_1, L2_1)
L0_1 = Config
L0_1 = L0_1.ThemeParkAttractionFallChance
if L0_1 then
  L0_1 = Config
  L0_1 = L0_1.ThemeParkFallSettings
  L0_1 = L0_1.attractions
  L0_1 = L0_1.boat
  if L0_1 then
    L0_1 = RegisterServerEvent
    L1_1 = "rtx_themepark:Boat:ThrowAttraction"
    L0_1(L1_1)
    L0_1 = AddEventHandler
    L1_1 = "rtx_themepark:Boat:ThrowAttraction"
    function L2_1(A0_2)
      local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
      L1_2 = source
      if nil ~= A0_2 then
        L2_2 = boathandler
        L2_2 = L2_2.seats
        L2_2 = L2_2[A0_2]
        L3_2 = L2_2.taken
        if true == L3_2 then
          L3_2 = L2_2.takenplayerid
          if L3_2 == L1_2 then
            L3_2 = TriggerClientEvent
            L4_2 = "rtx_themepark:Boat:DisableCollision"
            L5_2 = L1_2
            L6_2 = true
            L3_2(L4_2, L5_2, L6_2)
            L3_2 = TriggerClientEvent
            L4_2 = "rtx_themepark:Boat:SynchronizeSeat"
            L5_2 = -1
            L6_2 = A0_2
            L7_2 = false
            L8_2 = L2_2.takenplayerid
            L3_2(L4_2, L5_2, L6_2, L7_2, L8_2)
            L3_2 = TriggerClientEvent
            L4_2 = "rtx_themepark:Boat:SeatThrowClient"
            L5_2 = L2_2.takenplayerid
            L3_2(L4_2, L5_2)
            L3_2 = TriggerClientEvent
            L4_2 = "rtx_themepark:Global:AttractionUsing"
            L5_2 = L2_2.takenplayerid
            L6_2 = false
            L3_2(L4_2, L5_2, L6_2)
            L2_2.taken = false
            L2_2.takenplayerid = nil
            L2_2.seattype = 1
          end
        end
      end
    end
    L0_1(L1_1, L2_1)
  end
end
